#!/usr/bin/env bash
community=`ps -ef | grep "MAIJICLOUD-COMMUNITY-1.0-SNAPSHOT.jar" | grep -v "grep" | awk '{print $2}'`
kill -9 $community
mvn dependency:copy-dependencies -DoutputDirectory=lib/
nohup java -Xms512m -Xmx512m  -jar /maiji/MAIJICLOUD-COMMUNITY/MAIJICLOUD-COMMUNITY-1.0-SNAPSHOT.jar >> /maiji/MAIJICLOUD-COMMUNITY/MAIJICLOUD-COMMUNITY.log 2>&1 &
tail -f /maiji/MAIJICLOUD-COMMUNITY/MAIJICLOUD-COMMUNITY.log